import request from "@/utils/request";

// 更新收藏标签
export const updateFavoriteTagsById = (favoriteData) => request.post('/api/favorite/updateTagsByFavoriteId', favoriteData)

// 添加收藏店铺
export const addFavoriteStore = (favoriteData) => request.post('/api/favorite/addFavoriteStore', favoriteData)

// 取消收藏店铺
export const removeFavoriteStore = (favoriteData) => request.post('/api/favorite/removeFavoriteStore', favoriteData)

// 查询收藏列表
export const listFavoriteStores = (query) => request.get('/api/favorite/listFavoriteByUserId', { params: query })

export const getFavoriteByUserStore = ({userId, storeId}) => request.get('/api/favorite/getFavoriteByUserStore', {params: {userId, storeId}})